//
//  WAGoodsCell.m
//  WalkiOS
//
//  Created by luqiuan on 2019/10/15.
//  Copyright © 2019 Chenmuzhou. All rights reserved.
//

#import "WAGoodsCell.h"

@implementation WAGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    [self cornerTopLeftAndTopRight:7 byRoundingCorners:UIRectCornerBottomLeft|UIRectCornerBottomRight ];
}

- (void)setModel:(WAGoodModel *)model{
    _model = model;
    self.yanjingLB.text = model.name;
    self.tangLB.text = [NSString stringWithFormat:@"雨露：%.1f",model.yuluprice];
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.image0] placeholderImage:[UIImage imageNamed:@"default"]];
}
@end
